package com.dongdongshop.em;


//声明为枚举类
public enum ResultEnum {

    SUCCESS(1,"操作成功")
    ,ERROR(2,"操作失败")
    ,NOLOGIN(3,"没有登录");

    private Integer code;
    private String massage;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }

    ResultEnum() {
    }

    ResultEnum(Integer code, String massage) {
        this.code = code;
        this.massage = massage;
    }
}
